import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './vuex/store'
import Storage from 'vue-ls'
import Vant from 'vant'
import 'vant/lib/index.css'
import { VueAxios } from "@/utils/request"
import axios from 'axios'
import moment from 'moment'
//引用公共的css
import './styles/index.css'
// import './plugins/vant.js'

Vue.prototype.$http = axios;
Vue.prototype.$moment = moment;
Vue.config.devtools = true
const storageOptions = {
  namespace: 'proMobile__', // key prefix
  name: 'ls', // name variable Vue.[ls] or this.[$ls],
  storage: 'local' // storage name session, local, memory
}

Vue.config.productionTip = false;
Vue.use(Vant);
Vue.use(Storage, storageOptions);
Vue.use(VueAxios, router);


new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
